
<form id="searchForm" action="<?php echo current_url()?>">
	<label>
		Function Module
	</label>
	
	<input type="text" class="inputText" name="log_function" value="<? echo (isset($_GET['log_function'])) ? $_GET['log_function']:""?>" />
	
	<label>
		Table
	</label>
	<input type="text" class="inputText" name="log_table" value="<? echo (isset($_GET['log_table'])) ? $_GET['log_table']:""?>" />
	<label>
		Log Status
	</label>
	<input type="text" class="inputText" name="log_status" value="<? echo (isset($_GET['log_status'])) ? $_GET['log_status']:""?>" />
	<input type="submit" value="ค้นหา" />
</form>
	<div class=" pagination">
        <ul class="pagination">
            <?
			//print_r ($pagination);
			//exit();
            echo $pagination->create_links();
            ?>
        </ul>    
    </div>

<table class="table table-striped table-bordered table-condensed"> <!-- cellspacing='0' is important, must stay -->

	<!-- Table Header -->
	<thead>
		<tr>
			<th style="width:15%">DATE</th>
			<th style="width:10%">FUNCTION MODULE</th>
			<th style="width:10%">TABLE</th>
			<th style="width:3%">RECORD</th>
			<th style="width:5%">TYPE</th>
			<th style="width:5%">STATUS</th>
			<th style="width:8%">BY</th>
		</tr>
	</thead>
	<!-- Table Header -->
	
	<!-- Table Body -->
	<tbody>
<?
	if(!empty($dataList)){
	?>
		<?
		
		foreach($dataList as $in=>$val){
		?>
			<tr>
				<td><?php echo $val->log_date?></td>
				<td><?php echo $val->log_function?></td>
				<td><?php echo $val->log_table?></td>
				<td align="right"><?php echo $val->log_record?></td>
				<td><?php echo $val->log_type?></td>
				<td><?php echo $val->log_status?></td>
				<td><?php echo $val->log_by_name?></td>
			</tr>
		<?
		}
		?>
<?
	}else{
	?>
		<tr>
			<td colspan="11"><h2>ไม่พบข้อมูล</h2></td>
		</tr>
	<?
	}
	?>
	
	</tbody>
	
	<!-- Table Body -->

</table>
<div class=" pagination">
        <ul class="pagination">
            <?
            echo $pagination->create_links();
            ?>
        </ul>    
    </div>
    